package com.sponsorpay.sdk.android.advertiser;

import com.sponsorpay.sdk.android.credentials.SPCredentials;
import com.sponsorpay.sdk.android.utils.SponsorPayBaseUrlProvider;
import java.util.HashMap;
import java.util.Map;

public class ActionCallbackSender extends AbstractCallbackSender
{
  private static final String ACTIONS_URL_KEY = "actions";
  private static final String ACTION_ID_KEY = "action_id";
  protected String mActionId;

  public ActionCallbackSender(String paramString, SPCredentials paramSPCredentials, SponsorPayAdvertiserState paramSponsorPayAdvertiserState)
  {
    super(paramSPCredentials, paramSponsorPayAdvertiserState);
    this.mActionId = paramString;
  }

  protected String getAnswerReceived()
  {
    return this.mState.getCallbackReceivedSuccessfulResponse(this.mActionId);
  }

  protected String getBaseUrl()
  {
    return SponsorPayBaseUrlProvider.getBaseUrl("actions");
  }

  protected Map<String, String> getParams()
  {
    HashMap localHashMap = new HashMap();
    localHashMap.put("action_id", this.mActionId);
    return localHashMap;
  }

  protected void processRequest(Boolean paramBoolean)
  {
    this.mState.setCallbackReceivedSuccessfulResponse(this.mActionId, true);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.sponsorpay.sdk.android.advertiser.ActionCallbackSender
 * JD-Core Version:    0.6.2
 */